package com.aaa.mrcai.mapper;

import com.aaa.mrcai.pojo.entity.GoodsCategory;
import com.aaa.mrcai.pojo.vo.GoodsCategoryVo;
import com.aaa.mrcai.query.GoodsCategoryQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Demo class
 *
 * @Author: Wang
 * @Date: Created in 20:35 2021/12/7
 */
public interface GoodsCategoryMapper {
    List<GoodsCategory> queryGoodsCategory(GoodsCategoryQuery query);

    Long queryGoodsCategoryTotalCount(GoodsCategoryQuery query);

    Long isGoodsCategoryExists(@Param("category") String category);

    int addGoodsCategory(GoodsCategoryVo goodsCategoryVo);

    GoodsCategoryVo getGoodsCategory(int id);

    int deleteGoodsCategory(int id);

    long isUpdateGoodsCategoryExists(GoodsCategoryVo goodsCategoryVo);

    int updateGoodsCategory(GoodsCategoryVo goodsCategoryVo);
}
